const express = require("express");
const bodyParser = require("body-parser");
const router = express.Router();
const Mock = require("mockjs");
const urlencodedParser = bodyParser.urlencoded({ extended: false });

router.post("/login", urlencodedParser, (req, res) => {
  const data = {
    code: 200,
    data: {
      message: "success",
      token: "token",
      username: "username",
    },
  };
  res.json(data);
});
module.exports = router;
